| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ResourceManager.h
1 // ResourceManager.h
3 //
5
6 namespace nkGraphics
7 {
11 class ResourceManager : public nkCommon::MaybeSingletonClass<ResourceManager>
12 {
13 public :
14
23 void loadResourceSetDescFileSync (const ResourceSetLoadQuery& query, ResourceSetLoadResult& resultRef) ;
32 void loadResourceSetDescFileAsync (const ResourceSetLoadQuery& query, ResourceSaveLoadCallback* callback = nullptr) ;
38 void saveResourceSetDescFile (const ResourceSetSaveQuery& query) ;
39
48 void loadCamera (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
57 void loadBlendState (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
66 void loadDepthStencilState (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
75 void loadRasterState (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
84 void loadSampler (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
93 void loadTexture (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
102 void loadBuffer (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
111 void loadShader (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
120 void loadProgram (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
129 void loadMesh (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
139 void loadCompositor (nkMemory::StringView path, nkMemory::StringView compoToDefault = "", ResourceSaveLoadCallback* callback = nullptr) ;
148 void loadNode (nkMemory::StringView path, ResourceSaveLoadCallback* callback = nullptr) ;
149 } ;
150 }
nkGraphics::ResourceManager::loadTexture
void loadTexture(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceManager::loadProgram
void loadProgram(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceManager
Generic resource manager, enabling more intelligent processing of resources, compared to the ContentL...
Definition: ResourceManager.h:12
nkGraphics::ResourceManager::loadCompositor
void loadCompositor(nkMemory::StringView path, nkMemory::StringView compoToDefault="", ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceManager::saveResourceSetDescFile
void saveResourceSetDescFile(const ResourceSetSaveQuery &query)
nkGraphics::ResourceManager::loadDepthStencilState
void loadDepthStencilState(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceManager::loadBlendState
void loadBlendState(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceManager::loadNode
void loadNode(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceManager::loadResourceSetDescFileSync
void loadResourceSetDescFileSync(const ResourceSetLoadQuery &query, ResourceSetLoadResult &resultRef)
nkGraphics::ResourceSetSaveQuery
Holds information about a resource set (project) saving query.
Definition: ResourceSetSaveQuery.h:14
nkGraphics::ResourceManager::loadShader
void loadShader(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceManager::loadSampler
void loadSampler(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ResourceManager::loadMesh
void loadMesh(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceSetLoadQuery
Holds information about a resource set (project) load query.
Definition: ResourceSetLoadQuery.h:12
nkGraphics::ResourceManager::loadRasterState
void loadRasterState(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceSetLoadResult
Holds the result of a loading operation for a resource set.
Definition: ResourceSetLoadResult.h:14
nkGraphics::ResourceManager::loadCamera
void loadCamera(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ResourceManager::loadBuffer
void loadBuffer(nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr)
nkGraphics::ResourceManager::loadResourceSetDescFileAsync
void loadResourceSetDescFileAsync(const ResourceSetLoadQuery &query, ResourceSaveLoadCallback *callback=nullptr)